Create Video from Your Template
How to create video from Your Template.
Introduction
Create videos with templates, where you can customize your own text, images, videos, and Script content.
Quick Start
Prerequisite
-
You need a JoggAI account with API access.
-
You need to go through the Get your API key.
Procedure
-
Creating Template through the Interface.
-
Define the replaceable elements in the template.
-
Modify Template Elements and Generate Video.
Step 1: Creating Template through the Interface
Create your own templates in the user interface
There are two types of templates. One is in the public library, and the other is created by individuals.
The templates created by yourself can be directly copied with their IDs.
Obtain the list of templates
You can also obtain the template_id you need by getting the list of templates.
Through the following request, you can get the templates that you created yourself.
Step 2: Define the replaceable elements in the template.
On the interface, define variables.
You can customize variable names for the elements in the template to facilitate your identification and replacement of them.
Tip: Currently, only script content, text, image, video and avatar
are supported.
Step 3: Modify Template Elements and Generate Video.
Pass the parameters for generating the video to the template, and it will return a generated video_ID
.
Replace Text / Image / Video / in Template
How to replace the text, images and videos in the template.
Relevant parameters
Text Properties:
content: Text content.
Image Properties:
url:
URL of the image content.
Video Properties:
url:
URL of the video content.
Example
Define the variable.
Modify Template Elements and Generate Video.
Replace Script content in Template
How to replace the scripts content within the template.
Relevant parameters
Script Properties:
content: Script content.
Example
Define the variable.
Modify Template Elements and Generate Video.
Replace Avatar in Template
How to replace the Avatar within the template.
Relevant parameters
Avatar Properties:
content: Avatar ID.
Example
Modify the Avatar ID and Generate Video.
Callout Content.
We also have a feature that we don’t recommend to use very often: adding a tag to the script to implement pause in the video editor. It allows you to silence your video for a set amount of time.
Add a pause to the script with
<break time=\"2s\" />.